﻿using Newtonsoft.Json;
using System;

namespace HobSoft.SoccerBet2014.Domain.Models.BfRaw
{
    public class Order
    {
        [JsonProperty(PropertyName = "betId")]
        public string BetId { get; set; }

        [JsonProperty(PropertyName = "orderType")]
        public OrderType OrderType { get; set; }

        [JsonProperty(PropertyName = "status")]
        public OrderStatus Status { get; set; }

        [JsonProperty(PropertyName = "persistenceType")]
        public PersistenceType PersistenceType { get; set; }

        [JsonProperty(PropertyName = "side")]
        public Side Side { get; set; }

        [JsonProperty(PropertyName = "price")]
        public double Price { get; set; }

        [JsonProperty(PropertyName = "size")]
        public double Size { get; set; }

        [JsonProperty(PropertyName = "bspLiability")]
        public double? BspLiability { get; set; }

        [JsonProperty(PropertyName = "placedDate")]
        public DateTime? PlacedDate { get; set; }

        [JsonProperty(PropertyName = "avgPriceMatched")]
        public double? AvgPriceMatched { get; set; }

        [JsonProperty(PropertyName = "sizeMatched")]
        public double? SizeMatched { get; set; }

        [JsonProperty(PropertyName = "sizeRemaining")]
        public double? SizeRemaining { get; set; }

        [JsonProperty(PropertyName = "sizeLapsed")]
        public double? SizeLapsed { get; set; }

        [JsonProperty(PropertyName = "sizeCancelled")]
        public double? SizeCancelled { get; set; }

        [JsonProperty(PropertyName = "sizeVoided")]
        public double? SizeVoided { get; set; }
    }
}
